<div class="container">




<div class="row">
    <div class="col-md-4">



<ul>
    <li><a href="<?=base_url('main/wiki_add')?>">+ New</a></li>
</ul>


    
<ul>
<?php  foreach($wiki_array as $wiki_key => $wiki_value){ ?>
    <li><a href="/main/wiki#<?=$wiki_value['wiki_id']?>">
        <?=$wiki_value['wiki_order']?> :: <?=$wiki_value['wiki_title']?> </a>
    </li>
<?php }?>
</ul>
    


    </div><!-- .col-md-4 -->










    <div class="col-md-8">


        <?php  foreach($wiki_array as $wiki_key => $wiki_value){ ?>
            <div style="margin-bottom:2em;">
                <p>
                    <a href="<?=base_url('main/wiki_edit/' . $wiki_value['wiki_id'])?>" class="pull-right">[Edit]</a>
                    <strong id="#<?=$wiki_value['wiki_id']?>" ><?=$wiki_value['wiki_title']?></strong><br>
                </p>
                <pre><?=$wiki_value['wiki_content']?></pre>

                <ul>
                    <?php foreach($wiki_value["wiki_files_array"] as $file_key => $file_info){ ?>
                        <li>
                            <a target="_blank" href="<?=base_url('/uploads_wiki/') . $wiki_value['wiki_id'] . '/' . $file_info["file_newname"]?>">
                                <?=$file_info["file_oldname"]?>
                                (<?=$file_info["file_size"]?>MB)
                            </a>
                        </li>
                    <?php }?>
                </ul>


            </div>
            
            
        <?php }?>


    </div><!-- .col-md-8 -->




</div><!-- .row -->








</div>